from django.urls import path
from . import views
from django.views.static import serve

from django.conf import settings
from django.conf.urls import url
app_name = 'empoll'
urlpatterns = [
    path('', views.login, name='login'),
    path('loginin', views.loginin, name='loginin'),
    path('to/evaluate/<appraiser>/<appraisered>', views.toevaluate, name='toevaluate'),
    path('change/<employ_id>', views.changeinfor, name='changeinfor'),
    path('tochange/<employ_id>', views.change, name='change'),
    path('to/add/<appraiser>/<appraisered>', views.addscore, name='addscore'),
    path('to/add/<id>', views.addscoreall, name='addscoreall'),
    path('to/<id>', views.loginwithoutvalite, name='loginwithoutvalite'),
    path('to/admin/<id>/', views.touserlist, name='touserlist'),
    path('to/createemploy/<id>/', views.cemploy, name='cemploy'),
    path('to/adminchanage/<id>/<id2>',views.adminchange,name='adminchange'),
    path('to/delete/<id>/<id2>',views.deleteEmploy,name='deleteEmploy'),
    path('to/search/<id>/',views.search,name='search'),
    path('to/commentid/<id>/',views.commentlist,name='commentlist'),
    path('to/deletecomment/<id>/<id2>',views.deletecomment,name='deletecomment'),
    path('to/commentsearch/<id>',views.commentsearch,name='commentsearch'),
    path('to/print/<id>',views.toprint,name='toprint'),
    path('to/printo/<id>',views.get_output_self_list,name='get_output_self_list'),
    path('to/outoone/<searchid>/<total>',views.output_the_one_infor,name='output_the_one_infor'),
    path('to/outoall/<id>', views.output_the_all_infor, name='output_the_all_infor'),
    path('time/<id>', views.set_time, name='set_time'),
    path('deletescore/<id>', views.deleteallinformation, name='deleteallinformation'),
    path('GetBackUpCopy/<id>', views.GetBackUpCopy,name='GetBackUpCopy'),
    path('set_weight_value/<id>',views.set_weight_value,name='set_weight_value'),
    url(r'^static/(?P<path>.*)$', serve,
        {'document_root': settings.STATICFILES_DIRS}, name='static'),
]
handler403 = views.page_permission_denied
handler404 = views.page_not_found
handler500 = views.page_inter_error
